set(BIN_NAME test_main)

# GoogleTest requires at least C++14
set(CMAKE_CXX_STANDARD 14)

enable_testing()
add_subdirectory(googletest)

aux_source_directory(hello_test.cc SRC_LIST)
add_executable(${BIN_NAME} hello_test.cc)
target_link_libraries(${BIN_NAME} PUBLIC
    gtest_main
    binary_search_tree
)

add_test(
    NAME ${BIN_NAME}
    COMMAND ${BIN_NAME}
)